/**
 * @author abcque
 * @version 1.0
 * @ className StringTest
 * @ description 字符串练习
 * @ date 2022/10/18 8:26
 */
public class StringTest {
    public static void main(String[] args) {
        int no = 10;
        String str = "abcdef";
        String str1 = str + "xyz" + no;

        // abcdefxyz10
        System.out.println(str1);

        str1 = str1 + "123";
        // abcdefxyz10123
        System.out.println(str1);

        char c = '国';

        double pi = 3.1416;
        str1 = str1 + pi;

        // abcdefxyz101233.1416
        System.out.println(str1);

        boolean b = false;
        str1 = str1 + b;

        // abcdefxyz101233.1416false
        System.out.println(str1);

        str1 = str1 + c;

        // abcdefxyz101233.1416false国
        System.out.println(str1);

    }
}
